using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using BoOnce.GameLogic;
using BoOnce.Components;
using FarseerGames.FarseerPhysics.Dynamics;
using FarseerGames.FarseerPhysics.Collisions;
using BoOnce.GameLogic.Entities;

namespace BoOnce.Steps
{
    class Level2 : Level
    {
        Countdown _Chrono;
        public Level2(Game game)
            : base(game, "2")
        {
            //CurrentLevel = new Level(game, "2");
            //_Input = (InputComponent)game.Services.GetService(typeof(InputComponent));

            //Vector2[] groundVector = new Vector2[3];
            //groundVector[0] = new Vector2(50f, 100f);
            //groundVector[1] = new Vector2(150f, 100f);
            //groundVector[2] = new Vector2(150f, 150f);

            //Vertices ground = new Vertices(groundVector);
            //Body body = BodyFactory.Instance.CreatePolygonBody(ground,1f);
            //Geom geom = GeomFactory.Instance.CreatePolygonGeom(body,ground, 0f);
            //CurrentLevel.PhysicComponent.AddPhysicalEntity(body,geom,50f);

            //_Chrono = new Chrono();
            //_Chrono.Start(new TimeSpan(0,0,20));
        }

        public override void Update(GameTime gameTime)
        {
            //_Chrono.DrawedOrder = 1000;
            //_Chrono.DEC.Add(_Chrono);
            
            base.Update(gameTime);
        }
    }
}
